package zhc.app.base.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * Created by hu on 2017/5/13.
 */
public class Filter implements javax.servlet.Filter {
    public void destroy() {
    }

    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        long d1=System.currentTimeMillis();

        chain.doFilter(req, resp);
        long d2=System.currentTimeMillis();
        System.out.println("总时间"+(d2-d1));
    }

    public void init(FilterConfig config) throws ServletException {

    }

}
